<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";

%>
<html>
<head>
    <base href="<%=basePath %>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Insert title here</title>
</head>
<body>

<form action="${pageContext.request.contextPath}/user/login">
    用户名：<label>
    <input type="text" name="username"/>
</label>
    密码：<label>
    <input type="text" name="password"/>
</label>
    <label>
       输入验证码： <input type="text" name="code"/>
    </label><img src="${pageContext.request.contextPath}/user/getImage" alt="">
    <input type="submit" value="登录">
</form>
</body>
</html>
